<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title>sysbuilder</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<load href="assets/font-awesome/css/font-awesome.min.css" />
<load href="assets/simple-line-icons/simple-line-icons.min.css" />
<load href="assets/bootstrap/css/bootstrap.min.css" />
<load href="assets/uniform/css/uniform.default.css" />
<load href="assets/bootstrap-switch/css/bootstrap-switch.min.css" />
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN THEME STYLES -->
<load href="assets/css/components-md.css" />
<load href="assets/css/plugins-md.css" />
<load href="assets/css/layout.css" />
<load href="assets/css/themes/light.css" />
<load href="assets/css/custom.css" />
<!-- END THEME STYLES -->
</head>
<style type="text/css">
.page-content-wrapper .page-content{
    margin-left:0;
    padding:0;
    min-height: 520px;
}
.page-sidebar-closed .page-content-wrapper .page-content
{
    margin-left: 0 !important;
}
</style>
<load href="assets/jquery.min.js" />
<load href="assets/bootstrap/js/bootstrap.min.js" />

<body class="page-md page-header-fixed page-sidebar-closed-hide-logo page-sidebar-closed page-footer-fixed">
<div class="page-header md-shadow-z-1-i navbar navbar-fixed-top">
    <div class="page-header-inner">
        <div class="page-logo">
            <a href="index.html">
            <img src="assets/img/logo-light.png" alt="logo" class="logo-default"/>
            </a>
        </div>
        <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
        </a>
      
        <div class="page-actions">
            <a ajax-dialog href="{:U('Index/addItem')}" class="btn blue" ><i class="fa fa-plus"></i>新建项目</a>
            <div class="btn-group">
                <button data-toggle="dropdown" class="btn dropdown-toggle blue" type="button" aria-expanded="false">
                <span class="hidden-sm hidden-xs">选择项目</span><i class="fa fa-angle-down"></i>
                </button>
                <ul role="menu" class="dropdown-menu">
                    <volist name="items" id="it">
                    <li>
                        <a data-pjax href="{:U("Db/tbinfo?f=$it[ename]")}">
                        {$it.name}
                        </a>
                    </li>
                    </volist>
                </ul>
            </div>
        </div>
        <div class="page-top">
            <div class="top-menu">
                <ul class="nav navbar-nav pull-right">
                    <li class="separator hide">
                    </li>
                    
                    <li class="dropdown dropdown-user dropdown-dark">
                        <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                        <span class="username username-hide-on-mobile">
                        管理员</span>
                        <img alt="" class="img-circle" src="assets/avatar.png"/>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-default">                            
                            <li>
                                <a href="{:U('Public/login')}">
                                <i class="icon-key"></i>退出</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="clearfix">
</div>
<div class="page-container">
    <div class="page-content-wrapper">
        <div class="page-content">
            <div pjax-content class="row">
                {__CONTENT__}
            </div>
        </div>
    </div>
</div>
<div class="page-footer">
    <div class="page-footer-inner">
         2015 &copy; ayhome 强力驱动. <a href="#" >开源地址</a>
    </div>
    <div class="scroll-to-top">
        <i class="icon-arrow-up"></i>
    </div>
</div>

<!--[if lt IE 9]>
<load href="assets/respond.min.js" />
<load href="assets/excanvas.min.js" />
<![endif]-->
<load href="assets/jquery-migrate.min.js" />

<load href="assets/jquery-ui/jquery-ui.min.js" />
<load href="assets/bootstrap-hover-dropdown.min.js" />
<load href="assets/jquery.slimscroll.min.js" />
<load href="assets/jquery.blockui.min.js" />
<load href="assets/jquery.cokie.min.js" />
<load href="assets/uniform/jquery.uniform.min.js" />
<load href="assets/bootstrap-switch/js/bootstrap-switch.min.js" />

<load href="assets/bootstrap-editable/js/bootstrap-editable.min.js" />
<load href="assets/bootstrap-editable/css/bootstrap-editable.css" />

<load href="assets/bootstrap-dialog.js" />
<load href="assets/nprogress/nprogress.js" />
<load href="assets/nprogress/nprogress.css" />
<load href="assets/jquery.bootstrap-growl.js" />

<load href="assets/scripts/metronic.js" />
<load href="assets/scripts/jquery.pjax.js" />
<load href="assets/scripts/layout.js" />
<script>
$(document).on('pjax:error', function(xhr, textStatus, error, options) {
    console.log(error);
}) 
jQuery(document).ready(function() {

    $.pjax.defaults.timeout = 5000;
    if ($.support.pjax) {
        $(document).on('click', '.page-actions a[data-pjax]', function(e) {
            var container = $('[pjax-content]');
            $.pjax.click(e, {container: container})
        })

        $(document).on('click', '.page-content a[data-pjax]', function(e) {
            var container = $('[pjax-content]');
            $.pjax.click(e, {container: container})
        })
    }


    Metronic.init(); // init metronic core components
    Layout.init(); // init current layout
});
</script>
</body>
</html>